<style>
.ainuo_piclist{}
.ainuo_piclist li{ background:#fff;}
.ainuo_piclist li a{ display:block;}
.ainuo_piclist li a.lione{ padding:12px 10px 6px 10px;}
.ainuo_piclist li a.litwo{ padding:6px 10px 12px 10px;}
.ainuo_piclist li .author{ height:36px;  font-size:12px; color:#999;margin: 15px 10px 10px 10px;}
.ainuo_piclist li .author a{ display:inline;}
.ainuo_piclist li .author .aleft{ float:left; position:relative;}
.ainuo_piclist li .author .aleft .ava{ float:left; margin-right:8px;}
.ainuo_piclist li .author .aleft .t{ color:#333; font-size:14px;}
.ainuo_piclist li .author .aleft .ava img{ width:36px; height:36px;border-radius:50%;}
.ainuo_piclist li .author .aleft p{ position:absolute; left:45px; top:20px;}
.ainuo_piclist li .author .aright{ float:right;}
.ainuo_piclist li .author .aright a{ font-size:12px; color:#fa7d3c; border:1px solid #ddd; border-radius:2px; padding:3px 8px;}
.ainuo_piclist li .author .aright a.ygz{ color:#999; background:#eee;}
.ainuo_piclist li .asub .abadge{color: #fff;background-color: #fe7c51;font-size:12px;padding: 2px 5px; border-radius:2px; position:relative; top:-2px;}
.ainuo_piclist li .asub .leixing{background-color:#A8C500;}
.ainuo_piclist li .asub{ display:flex; position:relative;}
.ainuo_piclist li .asub .atitle{ font-size:16px; line-height:1.5;-webkit-flex-shrink: 1;-ms-flex: 0 1 auto;-webkit-flex-shrink: 1;flex-shrink: 1;position: relative;width: 100%;}
.ainuo_piclist li .apic1{-webkit-flex-shrink: 0;flex-shrink: 0; margin-top:5px;overflow: hidden;}
.ainuo_piclist li .apic1 img{ max-width:85%; height:auto;}
.ainuo_piclist li .apic2{ margin-top:5px;}
.ainuo_piclist li .apic2 .apic{ width:49.5%; margin-left:1%; float:left;}
.ainuo_piclist li .apic2 img{width: 100%;height: auto;}
.ainuo_piclist li .apic2 .apic:first-child {margin-left: 0;}
.ainuo_piclist li .apic3{}
.ainuo_piclist li .apic3 .apic{ width:32.666%; margin-left:1%; float:left; margin-top:1%;}
.ainuo_piclist li .apic3 img{width: 100%;height: auto;}
.ainuo_piclist li .apic3 .apic:first-child {margin-left: 0;}
.ainuo_piclist li .apic3 .apic:nth-child(4) {margin-left: 0;}
.ainuo_piclist li .apic3 .apic:nth-child(7) {margin-left: 0;}
.ainuo_piclist li .afenlei{  padding:0 10px; height:30px;}
.ainuo_piclist li .afenlei em{font-size:0;}
.ainuo_piclist li .afenlei em a{font-size: 12px;display: inline;background: #eee;padding: 3px 10px;border-radius: 20px;color: #666;}
.ainuo_piclist li .abot{ border-top:1px solid #eee; font-size:12px; height:40px; line-height:40px;}
.ainuo_piclist li .abot a{ display:block; color:#666; text-align:center; width:33.333%; float:left; border-left:1px solid #f2f2f2; margin-left:-1px;}
.ainuo_piclist li .abot i{ position:relative; top:2px;}
.ainuo_piclist li .abot .yidianzan{ color:#f55318;}

.ainuo_piclist .mod-lv {display: inline-block;height: 16px;-webkit-border-radius: 10px;background: #ffc11b;color: #fff;text-align: center;margin: 0 3px;vertical-align: middle;white-space: nowrap;padding: 0 4px;font-size: 0;position:relative;top:-1px;}
.ainuo_piclist .mod-lv .mod-lv-icon {line-height: 16px;width: 16px;height: 16px;margin-left: -4px;margin-right: 2px;border: 1px solid rgba(255,181,36,.8);color: #ed850a;background: #ffe970;-webkit-border-radius: 100%;display: inline-block;vertical-align: top;position: relative;font-size: 11px;}
.ainuo_piclist .mod-lv .mod-lv-icon i {position: absolute;width: 100%;height: 100%;left: 0;top: 0;font-size:12px;}
.ainuo_piclist .mod-lv span:not(.mod-lv-icon) {font-size: 11px;line-height: 17px;display: inline-block;vertical-align: top;position: relative;}

</style>

<!--{template html/listheader}-->
<!--{template common/top_fix}-->

<div class="cl">
<ul class="ainuo_forumtop cl">
    <li>
    	<!--{if $_G['forum'][icon]}--><img src="data/attachment/common/$_G['forum'][icon]"><!--{/if}-->
        <div class="abody">
            <!--{eval $isfav = DB::result_first("SELECT favid FROM ".DB::table('home_favorite')." where id=".$_G[fid]." and idtype='fid' and uid='$_G[uid]'");}-->
            <!--{if !$isfav || !$_G[uid]}-->
            <a href="javascript:;" ainuoto="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G[fid]&handlekey=favoriteforum" id="a_favorite" class="afa_fav">+$alang_gz</a>
            <!--{else}-->
            <a href="javascript:;" ainuoto="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G[fid]&handlekey=favoriteforum&formhash={FORMHASH}" class="afa_fav gy">$alang_yiguanzhu</a>
            <!--{/if}-->
            <h4 style="font-weight:400;">$_G['forum'][name]</h4>
            <p>
            {lang index_today}: <em>$_G[forum][todayposts]</em>
            {lang index_threads}: <em>$_G[forum][threads]</em>
            <!--{if $_G[forum][rank]}-->{lang rank}: <em>$_G[forum][rank]</em><!--{/if}-->
            </p>
            
        </div>
    </li>
</ul>
</div>

<!--{hook/forumdisplay_top_mobile}-->
<!--{if $quicksearchlist && !$_GET['archiveid']}-->
	<!--{subtemplate forum/search_sortoption}-->
<!--{else}-->
	<!--{subtemplate forum/type}-->
<!--{/if}-->
<!--{subtemplate forum/zd}-->


<!--{if empty($_G['forum']['sortmode'])}-->
    
    <!--{if $_G['forum_threadcount']}-->
    <div class="ainuo_piclist cl">
        <ul id="ainuoloadmore" class="ainuoloadmore">
			<!--{subtemplate html/weibo_list}-->
        </ul>
    </div>
    <!--{else}-->
    <div class="ainuoemp">{lang forum_nothreads}</div>
    <!--{/if}-->

<!--{else}-->
    <!--{subtemplate forum/forumdisplay_sort}-->
<!--{/if}-->
{if $pagestyle == 1}
<div id="ainuoloadempty"></div>
<!--{if $_G[forum][threads] && ($_G[forum][threads] > $_G[tpp])}-->
<div id="loading" class="loading G-animate-load-wrap">
	<div class="load-loading"><span class="loading02"></span> <span class="load-word">$alang_loading</span></div>
</div>
<!--{/if}-->
{else}
$multipage
{/if}


<script type="text/javascript">
	function zanbuzan(val,clsa,aid){
		<!--{if !$_G[uid]}-->
			<!--{if $Appbyme && $_G['cache']['plugin']['qu_app']['app_login']}-->
				sq.login(function(userInfo){});
				return false;
			<!--{else}-->
				popup.open('{lang nologin_tip}', 'confirm', 'member.php?mod=logging&action=login');
				return false;
			<!--{/if}-->
		<!--{/if}-->
		$('body').append('<div class="ainuooverlay"><div class="loadings_icon"><i class="toast-loading toast-icon_toast"></i></div></div>');
		$.ajax({
			type:'GET',
			url:'forum.php?mod=misc&action=recommend&do=add&tid='+aid+'&hash={FORMHASH}&inajax=1',
			dataType:'xml',
		})
		.success(function(s) {
			if(s.lastChild.firstChild.nodeValue.indexOf("$alang_yipingjia") >= 0){
				$('.ainuooverlay').remove();
				showMessage('$alang_dianzanguo');
			}else if(s.lastChild.firstChild.nodeValue.indexOf("$alang_zanjiayi") >= 0){
				setTimeout((document.getElementById(clsa).innerHTML = parseInt(document.getElementById(clsa).innerHTML) + 1),500);
				$("#dianzan_" + aid).addClass('yidianzan');
				$("#i_" + aid).addClass('icon-appreciate_fill_light');
				$('.ainuooverlay').remove();
				showMessage('$alang_zanjiayi2');
			}
		})
		.error(function() {
			window.location.href = obj.attr('href');
			$('.ainuooverlay').remove();
		});
		return false;
	};
</script>
<script type="text/javascript">
	function guanzhutis(val,clsa,aid){
		<!--{if !$_G[uid]}-->
			<!--{if $Appbyme && $_G['cache']['plugin']['qu_app']['app_login']}-->
				sq.login(function(userInfo){});
				return false;
			<!--{else}-->
				popup.open('{lang nologin_tip}', 'confirm', 'member.php?mod=logging&action=login');
				return false;
			<!--{/if}-->
		<!--{/if}-->
		if(document.getElementById(val).innerHTML.indexOf("+") >= 0){
			var ahref = 'home.php?mod=spacecp&ac=follow&op=add&fuid='+aid+'&hash={FORMHASH}';
		}else{
			var ahref = 'home.php?mod=spacecp&ac=follow&op=del&fuid='+aid;
		}
		$('body').append('<div class="ainuooverlay"><div class="loadings_icon"><i class="toast-loading toast-icon_toast"></i></div></div>');
		$.ajax({
			type:'GET',
			url:ahref + '&inajax=1',
			dataType:'xml',
		})
		.success(function(s) {	
			if(s.lastChild.firstChild.nodeValue.indexOf("$alang_notgzziji") >= 0){
				showMessage('$alang_notgzziji');
			}else if(s.lastChild.firstChild.nodeValue.indexOf("$alang_cgshouting") >= 0){
				$("."+clsa).text('$alang_yiguanzhu');
				//$("."+clsa).attr('href','home.php?mod=spacecp&ac=follow&op=del&fuid='+aid); 
				showMessage('$alang_cgshouting2');
			}else if(s.lastChild.firstChild.nodeValue.indexOf("$alang_qxchenggong") >= 0){
				//document.getElementById("ainuo_wait_{$thread['authorid']}").innerHTML = '+ $nh_guanzhu';
				$("."+clsa).text('+ $alang_gz');
				//$("."+clsa).attr('href','home.php?mod=spacecp&ac=follow&op=add&fuid='+aid+'&hash={FORMHASH}'); 
				showMessage('$alang_qxchenggong2');
			}
			$('.ainuooverlay').remove();
		})
		.error(function() {
			window.location.href = obj.attr('href');
			$('.ainuooverlay').remove();
		});
		return false;
	};
</script>